﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Xml;
using System.Xml.Schema;

namespace ServiceFramework
{
    public abstract class ServiceComponentBase : IServiceComponent
    {
        private string _name;
        private readonly int _version;

        protected ServiceComponentBase(string name, int version)
        {
            _name = name;
            _version = version;
        }

        public string Name
        {
            get { return _name; }
        }

        public int Version
        {
            get { return _version; }
        }

        public XmlSchema GetSchema()
        {
            return null;
        }

        public virtual void ReadXml(XmlReader reader)
        {
        }

        public virtual void WriteXml(XmlWriter writer)
        {
        }
    }
}
